package com.business.redis;

/**
 * redis 过期时间枚举
 */
public enum ExpiresTimeEnum {
    LEVEL_1(3600),//1 * 60 * 60
    LEVEL_2(7200),//2 * 60 * 60
    LEVEL_4(14400),//4 * 60 * 60
    LEVEL_8(2800),//8 * 60 * 60
    LEVEL_12(43200),//12 * 60 * 60
    LEVEL_24(86400),//24* 60 * 60

    CAPTCHA(180),//图片验证码过期时间 3 * 60
    VALIDATE_CODE(300),//验证码过期时间 5* 60 * 100
    GET_VALIDATE_CODE_FLAG(60),//获取验证码是否重复时间
    LOGIN(3600),//登陆过期时间 1 * 60 * 60
    REMEMBER_ME(604800),//记住我时间 7天

    ADD_MESSAGE(60);//留言

    private long expiresTime;

    ExpiresTimeEnum(long time){
        this.expiresTime = time;
    }

    public long getExpiresTime() {
        return expiresTime;
    }


}
